package com.chhuang.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @TableName ch_menu
 * @ClassName ChMenu
 * @Description ch_menu实体类(ChMenu)
 * @Author Darren Huang
 * @Date 2023-01-06 22:37:04
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ToString
@TableName(value = "ch_menu")
@ApiModel(value = "ChMenu对象", description = "ChMenu对象，用来对应数据库表ch_menu")
public class ChMenu extends Model<ChMenu> implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 524302450325406942L;

    /**
     * 菜单编号
     */
    @TableId(value = "menu_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "菜单编号")
    private String menuId;
    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    @ApiModelProperty(value = "菜单名称")
    private String menuName;
    /**
     * 是否为父菜单
     */
    @TableField(value = "as_parent")
    @ApiModelProperty(value = "是否为父菜单")
    private Integer asParent;
    /**
     * 父级菜单编号
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父级菜单编号")
    private String parentId;
    /**
     * 菜单地址
     */
    @TableField(value = "url")
    @ApiModelProperty(value = "菜单地址")
    private String url;
    /**
     * 图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(value = "图标")
    private String icon;
    /**
     * 菜单编号
     */
    @TableField(value = "menu_order")
    @ApiModelProperty(value = "菜单编号")
    private Integer menuOrder;
    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
